var Trait = function(){};

Trait.prototype.cumple = function(arrayParam) { 
	var arrParam = arrayParam.slice();
	console.log("cumple length array " + arrayParam.length);
	console.log("cumple length " + arrParam.length);
	if(arrParam.length == 0) {
		return true;
	} else {
		var caractDelArraYParam= arrParam.shift();
		console.log("cumple array param "+caractDelArraYParam);
		var i=this.caracteristicas.indexOf(caractDelArraYParam);//
		console.log("cumple "+i);
		if(i<=0) {
			return false;
		} else {
			var caractLocal = this.caracteristicas[i];
			return ((caractLocal == caractDelArraYParam) && this.cumple(arrParam));
		}
	}
};

module.exports = Trait;